package com.taint.asm.service;

import com.taint.asm.core.MethodCallClassVisitor;
import com.taint.asm.model.MethodReference;
import org.objectweb.asm.ClassReader;

import java.util.Map;
import java.util.Set;

public class MethodCallService {


    public static void start(byte[] clazz, Map<MethodReference.Handle, Set<MethodReference.Handle>> methodCalls, String canonicalName) {

        MethodCallClassVisitor mcv=new MethodCallClassVisitor(methodCalls);
        ClassReader classReader=new ClassReader(clazz);
        classReader.accept(mcv,ClassReader.EXPAND_FRAMES);

    }
}
